<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>新的全局常量</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="migration73.new-functions.html">« 新函数</a></li>
      <li style="float: right;"><a href="migration73.incompatible.html">不向下兼容的变更 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="migration73.html">从 PHP 7.2.x 移植到 PHP 7.3.x</a></li>
    <li>新的全局常量</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="migration73.constants" class="sect1">
 <h2 class="title">新的全局常量</h2>

 <div class="sect2" id="migration73.constants.core">
  <h3 class="title">PHP 核心中预定义的常量</h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara"><strong><code>PASSWORD_ARGON2ID</code></strong></span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration73.constants.curl">
  <h3 class="title">Client URL Library</h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara"><strong><code>CURLAUTH_BEARER</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLAUTH_GSSAPI</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLE_WEIRD_SERVER_REPLY</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLINFO_APPCONNECT_TIME_T</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLINFO_CONNECT_TIME_T</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLINFO_CONTENT_LENGTH_DOWNLOAD_T</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLINFO_CONTENT_LENGTH_UPLOAD_T</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLINFO_FILETIME_T</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLINFO_HTTP_VERSION</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLINFO_NAMELOOKUP_TIME_T</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLINFO_PRETRANSFER_TIME_T</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLINFO_PROTOCOL</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLINFO_PROXY_SSL_VERIFYRESULT</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLINFO_REDIRECT_TIME_T</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLINFO_SCHEME</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLINFO_SIZE_DOWNLOAD_T</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLINFO_SIZE_UPLOAD_T</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLINFO_SPEED_DOWNLOAD_T</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLINFO_SPEED_UPLOAD_T</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLINFO_STARTTRANSFER_TIME_T</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLINFO_TOTAL_TIME_T</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_LOCK_DATA_CONNECT</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_LOCK_DATA_PSL</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_MAX_READ_SIZE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_ABSTRACT_UNIX_SOCKET</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_DISALLOW_USERNAME_IN_URL</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_DNS_SHUFFLE_ADDRESSES</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_HAPROXYPROTOCOL</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_KEEP_SENDING_ON_ERROR</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_PRE_PROXY</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_PROXY_CAINFO</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_PROXY_CAPATH</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_PROXY_CRLFILE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_PROXY_KEYPASSWD</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_PROXY_PINNEDPUBLICKEY</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_PROXY_SSLCERT</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_PROXY_SSLCERTTYPE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_PROXY_SSL_CIPHER_LIST</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_PROXY_SSLKEY</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_PROXY_SSLKEYTYPE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_PROXY_SSL_OPTIONS</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_PROXY_SSL_VERIFYHOST</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_PROXY_SSL_VERIFYPEER</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_PROXY_SSLVERSION</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_PROXY_TLS13_CIPHERS</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_PROXY_TLSAUTH_PASSWORD</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_PROXY_TLSAUTH_TYPE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_PROXY_TLSAUTH_USERNAME</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_REQUEST_TARGET</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_SOCKS5_AUTH</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_SSH_COMPRESSION</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_SUPPRESS_CONNECT_HEADERS</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_TIMEVALUE_LARGE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLOPT_TLS13_CIPHERS</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLPROXY_HTTPS</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURLSSH_AUTH_GSSAPI</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_SSLVERSION_MAX_DEFAULT</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_SSLVERSION_MAX_NONE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_SSLVERSION_MAX_TLSv1_0</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_SSLVERSION_MAX_TLSv1_1</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_SSLVERSION_MAX_TLSv1_2</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_SSLVERSION_MAX_TLSv1_3</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_SSLVERSION_TLSv1_3</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_VERSION_ALTSVC</code></strong> (as of PHP 7.3.6)</span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_VERSION_ASYNCHDNS</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_VERSION_BROTLI</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_VERSION_CONV</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_VERSION_CURLDEBUG</code></strong> (as of PHP 7.3.6)</span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_VERSION_DEBUG</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_VERSION_GSSAPI</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_VERSION_GSSNEGOTIATE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_VERSION_HTTPS_PROXY</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_VERSION_IDN</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_VERSION_LARGEFILE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_VERSION_MULTI_SSL</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_VERSION_NTLM</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_VERSION_NTLM_WB</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_VERSION_PSL</code></strong> (as of PHP 7.3.6)</span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_VERSION_SPNEGO</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_VERSION_SSPI</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>CURL_VERSION_TLSAUTH_SRP</code></strong></span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration73.constants.filter">
  <h3 class="title">Data Filtering</h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara"><strong><code>FILTER_SANITIZE_ADD_SLASHES</code></strong></span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration73.constants.json">
  <h3 class="title">JavaScript Object Notation</h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara"><strong><code>JSON_THROW_ON_ERROR</code></strong></span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration73.constants.ldap">
  <h3 class="title">Lightweight Directory Access Protocol</h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_ASSERT</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_MANAGEDSAIT</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_PROXY_AUTHZ</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_SUBENTRIES</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_VALUESRETURNFILTER</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_PRE_READ</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_POST_READ</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_SORTREQUEST</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_SORTRESPONSE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_PAGEDRESULTS</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_AUTHZID_REQUEST</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_AUTHZID_RESPONSE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_SYNC</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_SYNC_STATE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_SYNC_DONE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_DONTUSECOPY</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_PASSWORDPOLICYREQUEST</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_PASSWORDPOLICYRESPONSE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_X_INCREMENTAL_VALUES</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_X_DOMAIN_SCOPE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_X_PERMISSIVE_MODIFY</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_X_SEARCH_OPTIONS</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_X_TREE_DELETE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_X_EXTENDED_DN</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_VLVREQUEST</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LDAP_CONTROL_VLVRESPONSE</code></strong></span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration73.constants.mbstring">
  <h3 class="title">Multibyte String</h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara"><strong><code>MB_CASE_FOLD</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>MB_CASE_LOWER_SIMPLE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>MB_CASE_UPPER_SIMPLE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>MB_CASE_TITLE_SIMPLE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>MB_CASE_FOLD_SIMPLE</code></strong></span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration73.constants.openssl">
  <h3 class="title">OpenSSL</h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara"><strong><code>STREAM_CRYPTO_PROTO_SSLv3</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>STREAM_CRYPTO_PROTO_TLSv1_0</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>STREAM_CRYPTO_PROTO_TLSv1_1</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>STREAM_CRYPTO_PROTO_TLSv1_2</code></strong></span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration73.constants.pgsql">
  <h3 class="title">PostgreSQL</h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara"><strong><code>PGSQL_DIAG_SCHEMA_NAME</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>PGSQL_DIAG_TABLE_NAME</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>PGSQL_DIAG_COLUMN_NAME</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>PGSQL_DIAG_DATATYPE_NAME</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>PGSQL_DIAG_CONSTRAINT_NAME</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>PGSQL_DIAG_SEVERITY_NONLOCALIZED</code></strong></span>
   </li>
  </ul>
 </div>

</div></div></div></body></html>